package com.zhy.generator.codegen.internal;
import com.zhy.generator.codegen.api.ProgressCallback;
import lombok.extern.slf4j.Slf4j;

/**
 * This class implements a progress callback that does nothing. It is used when
 * the client passes in a null for the ProgressCallback.
 *
 * @author Jeff Butler
 */
@Slf4j
public class NullProgressCallback implements ProgressCallback {

    /**
     *
     */
    public NullProgressCallback() {
        super();
    }

    @Override
    public void generationStarted(int totalTasks) {
    }

    @Override
    public void introspectionStarted(int totalTasks) {
    }

    @Override
    public void saveStarted(int totalTasks) {
    }

    @Override
    public void startTask(String taskName) {
        log.info(taskName);
    }

    @Override
    public void checkCancel() throws InterruptedException {
    }

    @Override
    public void done() {
    }
}
